home *** CD-ROM | disk | FTP | other *** search
/ ADA Programming Guide / ADA Programming Guide.iso / ada_gnu / adainc / a-ticoio.ads < prev    next >
Text File  |  1996-01-30  |  2KB  |  65 lines

  1. ------------------------------------------------------------------------------
  2. --                                                                          --
  3. --                         GNAT RUNTIME COMPONENTS                          --
  4. --                                                                          --
  5. --               A D A . T E X T _ I O . C O M P L E X _ I O                --
  6. --                                                                          --
  7. --                                 S p e c                                  --
  8. --                                                                          --
  9. --                            $Revision: 1.5 $                              --
  10. --                                                                          --
  11. -- This specification is adapted from the Ada Reference Manual for use with --
  12. -- GNAT.  In accordance with the copyright of that document, you can freely --
  13. -- copy and modify this specification,  provided that if you redistribute a --
  14. -- modified version,  any changes that you have made are clearly indicated. --
  15. --                                                                          --
  16. ------------------------------------------------------------------------------
  17.  
  18. with Ada.Numerics.Generic_Complex_Types;
  19.  
  20. generic
  21.    with package Complex_Types is new Ada.Numerics.Generic_Complex_Types (<>);
  22.  
  23. package Ada.Text_IO.Complex_IO is
  24.  
  25.    use Complex_Types;
  26.  
  27.    Default_Fore : Field := 2;
  28.    Default_Aft  : Field := Real'Digits - 1;
  29.    Default_Exp  : Field := 3;
  30.  
  31.    procedure Get
  32.      (File  : in  File_Type;
  33.       Item  : out Complex;
  34.       Width : in  Field := 0);
  35.  
  36.    procedure Get
  37.      (Item  : out Complex;
  38.       Width : in  Field := 0);
  39.  
  40.    procedure Put
  41.      (File : in File_Type;
  42.       Item : in Complex;
  43.       Fore : in Field := Default_Fore;
  44.       Aft  : in Field := Default_Aft;
  45.       Exp  : in Field := Default_Exp);
  46.  
  47.    procedure Put
  48.      (Item : in Complex;
  49.       Fore : in Field := Default_Fore;
  50.       Aft  : in Field := Default_Aft;
  51.       Exp  : in Field := Default_Exp);
  52.  
  53.    procedure Get
  54.      (From : in  String;
  55.       Item : out Complex;
  56.       Last : out Positive);
  57.  
  58.    procedure Put
  59.      (To   : out String;
  60.       Item : in  Complex;
  61.       Aft  : in  Field := Default_Aft;
  62.       Exp  : in  Field := Default_Exp);
  63.  
  64. end Ada.Text_IO.Complex_IO;
  65.